package xyz.iguilty.workflow.example.entity;

import lombok.Getter;
import lombok.Setter;
import xyz.iguilty.workflow.model.BusinessModel;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 出差申请流程
 */

@Table(name = "business_trip")
@Getter@Setter
@Entity
public class BusinessTrip extends BusinessModel {
    public static final String PROCESS_DEFINITION_KEY = "attendance_businessTrip";
    /**
     * 出差开始时间
     */
    private Date startTime;
    /**
     * 出差结束时间
     */
    private Date endTime;
    /**
     * 出差时间
     */
    private Integer days;

    @Override
    public String getProcessDefinitionKey() {
        return PROCESS_DEFINITION_KEY;
    }

    @Override
    public String getProcessDefinitionName() {
        return "出差申请";
    }
}
